<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<title>Registration Confirmation</title>
</h:head>

<h:body>
	<h:form>
		<h2>JSF Registration App</h2>
		<h4>Registration Confirmation</h4>
		<table>
			 <tr>
				<td>First Name:</td>
				<td><h:outputText label="First Name" id="fname"
						value="#{userBean.firstName}" /> 
				</td>
			</tr>
			
			<tr>
				<td>Last Name:</td>
				<td><h:outputText label="Last Name" id="lname"
						value="#{userBean.lastName}" /> 
				</td>
			</tr>
			
			<tr>
				<td>Sex:</td>
				<td><h:outputText label="Sex" id="sex"
						value="#{userBean.sex}" /> 
				</td>
			</tr>
			
			<tr>
				<td>Date of Birth:</td>
				<td><h:outputText label="Date of Birth" id="dob"
						value="#{userBean.dob}" /> 
				</td>
			</tr>
			
			<tr>
				<td>Email Address:</td>
				<td><h:outputText label="Email Address" id="email"
						value="#{userBean.email}" /> 
				</td>
			</tr>
			
			<tr>
				<td>Service Level:</td>
				<td><h:outputText label="Service Level" id="sevl"
						value="#{userBean.serviceLevel}" /> 
				</td>
			</tr>
			
		</table>
		<p>
			<h:commandButton value="Edit" action="register" />
			<h:commandButton value="Confirm" action="#{userBean.addConfirmedUser}" onclick="done"/>
		</p>
	</h:form>


</h:body>

</html>